package 笔试.美团.第三题小团无路可逃;

public class Node
{
    private int val;
    private Node next1=null;
    private Node next2=null;

    public Node(int val, Node next1, Node next2)
    {
        this.val = val;
        this.next1 = next1;
        this.next2 = next2;
    }

    public int getVal()
    {
        return val;
    }

    public void setVal(int val)
    {
        this.val = val;
    }

    public Node getNext1()
    {
        return next1;
    }

    public void setNext1(Node next1)
    {
        this.next1 = next1;
    }

    public Node getNext2()
    {
        return next2;
    }

    public void setNext2(Node next2)
    {
        this.next2 = next2;
    }
}
